package com.qf.leadnewswemedia.controller;

import com.qf.leadnewsmodel.dtos.ResponseResult;
import com.qf.leadnewswemedia.model.dtos.WmLoginDto;
import com.qf.leadnewswemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WmUserController {

    @Autowired
    private WmUserService userService;

    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody WmLoginDto wmLoginDto){
        return userService.login(wmLoginDto);
    }
}
